//
//  TestController.m
//  TEST
//
//  Created by 红沙尘 on 17/5/3.
//  Copyright © 2017年 红沙尘. All rights reserved.
//

#import "TestController.h"
#import "AppDelegate.h"
@interface TestController ()

@end

@implementation TestController

- (IBAction)back {
    
    AppDelegate *app = (AppDelegate *)[UIApplication sharedApplication].delegate;
    app.orientation = UIInterfaceOrientationMaskPortrait;
    [self dismissViewControllerAnimated:YES completion:nil];
}

- (UIInterfaceOrientationMask)supportedInterfaceOrientations
{
     return UIInterfaceOrientationMaskPortrait | UIInterfaceOrientationMaskLandscape;
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
